<?php

namespace app\http\middleware;

class Auth
{
    public function handle($request, \Closure $next) {
        if (!session('?memberInfo')) {
            return json([
                'code' => '4000',
                'msg' => lang('4000'),
            ]);
        }
        return $next($request);
    }
}
